package resolver

// This file will be automatically regenerated based on the schema, any resolver implementations
// will be copied through when generating and any unknown code will be moved to the end.

import (
	"context"
	"gqlt2/graph/model"

	"github.com/dgryski/trifles/uuid"
)

func (r *queryResolver) RideHailingDriverList(ctx context.Context, query model.RideHailingDriverListQuery) (*model.RideHailingDriverConnection, error) {
	return &model.RideHailingDriverConnection{
		PageInfo: &model.PageInfo{Total: 100},
		Nodes:    []*model.RideHailingDriver{&model.RideHailingDriver{RideHailingDriverID: uuid.UUIDv4()}},
	}, nil
}

func (r *queryResolver) RideHailingDriverVerifyStatistics(ctx context.Context, query model.RideHailingDriverVerifyStatisticsQuery) ([]*model.RideHailingDriverVerifyStatistics, error) {
	return []*model.RideHailingDriverVerifyStatistics{
		&model.RideHailingDriverVerifyStatistics{
			DriverSchool: &model.Enterprise{
				EnterpriseID: uuid.UUIDv4(),
			},
			SignUpNums:   0,
			AuditNums:    0,
			NotAuditNums: 0,
			PassNums:     0,
			RejectNums:   0,
		},
	}, nil
}
